package File;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class Demo10 {
    public static void main(String[] args) {
        try(Writer writer=new FileWriter("./writer.txt")){
            writer.write("hello world!");
        } catch (IOException e) {
            throw new RuntimeException();
        }
    }
}
